/*
 * 文件名:CustomerRelation.java
 * 创建时间:2010-10-01
 * 版本:2.0
 * 版权所有:杨涛 walle1027@gmail.com
 */
package com.yangtao.wms.domain;

import com.yangtao.framework.hibernate.BaseEntity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 代码生成器 v-2.0
 * @version 2.0
 */
@Entity
@Table(name = "WMS_MST_CUSTOMER_RELATION")
public class CustomerRelation extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 关联类型
	 */
	@Column(name = "RELATION_TYPE", length = 20)
	private String relationType;

	/**
	 * 客户基本信息表
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MASTER_CUST_ID")
	private Customer masterCustomer;

	/**
	 * 客户基本信息表
	 */
	@Column(name = "MASTER_CUST_ID", updatable = false, insertable = false)
	private String masterCustId;

	/**
	 * 获取  关联类型
	 *
	 * @return relationType
	 */
	public String getRelationType() {
		return relationType;
	}

	/**
	 * 设置 关联类型
	 *
	 * @param relationType 关联类型
	 */
	public void setRelationType(String relationType) {
		this.relationType = relationType;
	}


	/**
	 * 获取 客户基本信息表
	 *
	 * @return masterCustomer
	 */
	public Customer getMasterCustomer() {
		return masterCustomer;
	}

	/**
	 * 设置 客户基本信息表
	 *
	 * @param masterCustomer 客户基本信息表
	 */
	public void setMasterCustomer(Customer masterCustomer) {
		this.masterCustomer = masterCustomer;
	}

	/**
	 * 获取 客户基本信息表
	 *
	 * @return masterCustId
	 */
	public String getMasterCustId() {
		return masterCustId;
	}

	/**
	 * 设置 客户基本信息表主键
	 *
	 * @param masterCustId 客户基本信息表主键
	 */
	public void setMasterCustId(String masterCustId) {
		this.masterCustId = masterCustId;
	}

}
